﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SWDataDB.Models;
using SWDataDB.BLL;
using SWDataDB.DAL;
using System.Data;
 
 

public partial class Admin_add_addBP : System.Web.UI.Page
{

   
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }


    

    protected void submit_Click(object sender, EventArgs e)
    {
        BP_INFO_TBL bpInfo = new BP_INFO_TBL();
        BPInfo kc_in = new BPInfo();

        bpInfo.O_ZL_FILE_ID = Request.Form["ZL_FILE_ID"];
        bpInfo.O_BP_NAME = Request.Form["BP_NAME"];

        bpInfo.O_BP_CODE = Request.Form["BP_CODE"];


        bpInfo.O_PM_PATH_NAME = Request.Form["PM_PATH_NAME"];
        bpInfo.O_PM_PATH_NUM = Request.Form["PM_PATH_NUM"];
        bpInfo.O_FEATURE =this.FEATURE.InnerText;
        bpInfo.O_DESCRIB = this.DESCRIB.InnerText;





        //bpInfo.O_IMAGE = Request.Form["IMAGE"];
        bpInfo.O_JD_NAME = Request.Form["JD_NAME"];
        bpInfo.O_JGGZ = Request.Form["JGGZ"];

        bpInfo.O_JD_PEOPLE = Request.Form["JD_PEOPLE"];


        bpInfo.O_JD_DATE = Request.Form["JD_DATE"];

        bpInfo.O_LR_PEOPLE = Request.Form["LR_PEOPLE"];
        bpInfo.O_LR_DATE = Request.Form["LR_DATE"];

        if (kc_in.AddbpInfo(bpInfo) == 1)
        {
            
            Response.Write("<script language=javascript>alert('更新成功！');location='../Manage/BPManage.aspx'</script>");
            //Response.Redirect("ZLManage.aspx");
        }
        else
        {
            Response.Write("<script language=javascript>alert('更新失败！');location='../Manage/BPManage.aspx'</script>");
        }
    }
}